//package com.css.gatewaynacos.config;
//
//import org.springframework.cloud.gateway.route.RouteLocator;
//import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author 郭辉
// * @className TODO
// * @description TODO
// * @date 2022/8/17 9:13
// * @company 海康威视
// * @since 1.0.0
// */
//@Configuration
//public class MyGateWayConfig{
//    @Bean
//    public RouteLocator myRoutLocator(RouteLocatorBuilder routeLocatorBuilder){
//        RouteLocatorBuilder.Builder routes = routeLocatorBuilder.routes();
//        routes.route("routes_id",item->item.path("/api/**").uri("lb://productor-nacos/")).build();
//        routes.route("routes_id",item->item.path("/gateway/**").uri("lb://gateway-nacos/")).build();
//        return routes.build();
//    }
//}
